- if @user.errors.empty?
  crm.flip_form('change_password');
  crm.set_title('change_password', '#{ j t(:my_profile) }');
  $('#flash').html('#{ j flash[:notice] }');
  crm.flash('notice')
  - flash[:notice] = nil
- else
  $('#change_password').html('#{ j render(partial: "password") }');
  $('#change_password').effect("shake", { duration:250, distance: 6 });
  - if @user.errors[:current_password].present?
    $('#current_password').focus();
  - else
    $('#user_password').focus();
